#include "Factory.h"

//CodecFactory
CodecFactory::CodecFactory() {

}

CodecFactory::~CodecFactory() {

}

Codec* CodecFactory::createCodec() {
	return NULL;
}


//RequestFactory
RequestFactory::RequestFactory(std::string encstr){
	this->m_encstr = encstr;
}

RequestFactory::RequestFactory(RequestInfo* info) {
	this->m_info = info;
}

Codec* RequestFactory::createCodec() {
	return new RequestCodec();
}

RequestFactory::~RequestFactory() {

}


//ResponseFactory
ResponseFactory::ResponseFactory(std::string encstr) {
	this->m_encstr = encstr;
}

ResponseFactory::ResponseFactory(ResponseInfo* info) {
	this->m_info = info;
}

Codec* ResponseFactory::createCodec() {
	return new ResponseCodec();
}

ResponseFactory::~ResponseFactory() {

}

